package com.yanqu.road.logic.bussiness.player;

import com.yanqu.road.entity.player.UserDecorationOrigin;
import com.yanqu.road.logic.bussiness.DaoHelper;
import com.yanqu.road.entity.player.UserDecoration;

import java.util.Map;

public class UserDecorationBussiness {

    public static Map<Integer, UserDecoration> getUserDecorationMap(long userId) {
        return DaoHelper.getUserDecorationDaoImpl().getUserDecorationMap(userId);
    }

    public static UserDecoration getUserDecorationById(long userId, int decorationId){
        return DaoHelper.getUserDecorationDaoImpl().getUserDecorationById(userId, decorationId);
    }

    public static Map<Long, Map<Integer, UserDecoration>> getNeedCheckUserDecorationMap() {
        return DaoHelper.getUserDecorationDaoImpl().getNeedCheckUserDecorationMap();
    }

    public static boolean addUserDecoration(UserDecoration userDecoration) {
        return DaoHelper.getUserDecorationDaoImpl().add(userDecoration);
    }

    public static boolean updateUserDecoration(UserDecoration userDecoration) {
        return DaoHelper.getUserDecorationDaoImpl().update(userDecoration);
    }

    public static Map<Integer, UserDecorationOrigin> getUserDecorationOriginMap(long userId) {
        return DaoHelper.getUserDecorationOriginDaoImpl().getUserDecorationOriginMap(userId);
    }

    public static boolean addUserDecorationOrigin(UserDecorationOrigin userDecorationOrigin) {
        return DaoHelper.getUserDecorationOriginDaoImpl().add(userDecorationOrigin);
    }

    public static boolean updateUserDecorationOrigin(UserDecorationOrigin userDecorationOrigin) {
        return DaoHelper.getUserDecorationOriginDaoImpl().update(userDecorationOrigin);
    }
}
